﻿<UserControl x:Class="Ripple.TestClient.Views.ActionBarView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d">
    <Grid FocusManager.FocusedElement="{Binding ElementName=AccountId}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="300" />
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="auto" />
        </Grid.ColumnDefinitions>

        <Label>Account</Label>
        <TextBox Name="AccountId" Grid.Column="1" Text="{Binding AccountId, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" KeyboardNavigation.TabIndex="0" VerticalContentAlignment="Center" />
        <GridSplitter Grid.Column="2" ResizeBehavior="PreviousAndNext"  ResizeDirection="Columns" Width="5" IsTabStop="False" />
        <Button Grid.Column="3" IsDefault="True" Command="{Binding LoadCommand}"  Padding="3,0,3,0" KeyboardNavigation.TabIndex="1">Load</Button>
    </Grid>
</UserControl>